<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/cms/article/contentmodel" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>
  <div class="page">
    <div class="page-hd">
      <h1>内容分类</h1>
    </div>

    <div class="datas">
      <div class="datas-bd">
        <table class="table">
          <thead>
            <tr>
              <th style="width:30px">ID</th>
              <th style="width:120px">名称</th>
              <th style="width:120px">英文名称</th>
              <th style="">描述</th>
              <th style="width:40px">状态</th>
              <th style="width:90px">操作</th>
            </tr>
          </thead>
          <tbody>
            <volist name="modellist" id="modellist">
              <tr>
                <td>{$modellist['id']}</td>
                <td class="align-left">{$modellist['class_name']}</td>
                <td class="align-left">{$modellist['class_alia_name']}</td>
                <td class="align-left">{$modellist['description']}</td>
                <td>
                  <eq name="modellist['status']" value="1">启用
                    <else/>
                    <font color="red">禁用</font>
                  </eq>
                </td>
                <td>
                  <a href="{:URL('cms/Article/updateClass',array('id'=>$modellist['id'],'class_alia_name'=>$modellist['class_alia_name']))}">修改</a>
                  |
                  <eq name="modellist['status']" value="1">
                    <a href="{:URL('cms/Article/setClassStatus',array('id'=>$modellist['id'],'status'=>'0','sid'=>$sid))}">禁用</a>
                    <else/>
                    <a href="{:URL('cms/Article/setClassStatus',array('id'=>$modellist['id'],'status'=>'1','sid'=>$sid))}">启用</a>
                  </eq>
                </td>
              </tr>
            </volist>
          </tbody>
        </table>
      </div>
    </div>

  </div>
</body>

</html>
